package com.cskaoyan.service.admin;

import com.cskaoyan.bean.MarketRole;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.bean.vo.admin.role.MarketModuleLevelBVo;

import java.util.List;

public interface RoleService {

    CommonData query(Integer id,String name,Integer page,Integer limit);

    CommonData queryList(Integer id, String name, Integer page, Integer limit);

    MarketRole create(MarketRole role);

    int update(MarketRole role);

    int delete(MarketRole role);

    MarketModuleLevelBVo.PermissionsVo queryModulePermissions(Integer id);

    void updatePermissions(Integer id,List<String> permissions);

}
